home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club (Business) 1997 July / Software of the Month Club - Business (Volume 239) (July 1997).iso / pc / code / e.dxr / 00008_#E03 - driver's side window.ls < prev    next >
Encoding:
Text File  |  1996-02-15  |  1.6 KB  |  36 lines

  1. global gEnvironmentSound, gOBJECTSE, gObjects, gStates, NULLrect, gHotRects, gCursorlist, gWorld, sQTSPRITE, sQTCharSprite
  2.  
  3. on doWindowLookRight
  4.   set initList to []
  5.   set killList to [#carLookLeft]
  6.   changeHotSpots(initList, killList, #false)
  7.   set runoutCount to getaProp(getaProp(gObjects, #CarGasGauge), #runoutCount)
  8.   MakeDynamic(#GasManQT, #droveOrTowed, #towed)
  9.   set the movieRate of sprite sQTCharSprite to 0
  10.   updateStage()
  11.   MakeDynamic(#carEmerPar, #State, #off)
  12.   set towLength to getaProp(getaProp(gObjects, #CarGasGauge), #towLength)
  13.   set carMapObj to getaProp(gObjects, #carMap)
  14.   set curScale to getaProp(carMapObj, #curScale)
  15.   set curZone to getaProp(carMapObj, #curZone)
  16.   set curZone to integer(curZone - (towLength * 25 / 25 * power(5, 3 - curScale)))
  17.   MakeDynamic(#carMap, #curZone, curZone)
  18.   set keyFrme1 to value("#E" & curScale & towLength)
  19.   set newDashCast to the number of cast string("EG" & curScale & ".pct")
  20.   set keyFrme2 to value("#EG" & curScale)
  21.   set initList to [#carLookRight]
  22.   set killList to [#carLookLeft]
  23.   changeHotSpots(initList, killList, #false)
  24.   if not (the shiftDown) then
  25.     set the locH of sprite getaProp(getaProp(gObjects, #TowCarDashView), #SpriteNum) to 280
  26.     set the locH of sprite getaProp(getaProp(gObjects, #TowCarDashPict), #SpriteNum) to 280
  27.   end if
  28.   set dashObj to getaProp(gObjects, #carDashView)
  29.   setaProp(getaProp(dashObj, #cast), #UP, newDashCast)
  30.   MakeDynamic(#carDashView, #cast, getaProp(getaProp(gObjects, #carDashView), #cast))
  31.   MakeDynamic(#CarGasGauge, #towLength, 0)
  32.   updateStage()
  33.   genExitKFE(keyFrme1, keyFrme2, "Tow")
  34.   CursorandUpdate()
  35. end
  36.